-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Fix failing Github Actions Tests #1753
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
… so it doesn't fail on DNS weridness. Should probably investigate further / refactor, but this blocks the thread on everything else on the repo, so I'm calling it.
Failed again on GitHub Actions, but passed on Travis (for the PR build). GA's failed tests:
Looks like a few DNS failures and some timeout errors. Running the entire suite of tests locally as a sanity check, no failures and runs in about 3 minutes which is ~25% of the time of the agents on Github Actions, doesn't fail on any test. Let's go one by one over the tests and see what's up:
Also, because I feel like playing around with the underlying agent, let's see what happens when I swap the OS the agent is running on from 16.04 to 20.04. Expect shenanigans. |
Old run: https://github.com/AsyncHttpClient/async-http-client/runs/1543080666?check_suite_focus=true So I didn't get a new runner version, but I did of course get a new OS version and new virtual environment versions. And 6 failed tests this time...
Made a very stupid mistake on the I think the timeouts on the Not seeing the DNS resolution error on the maxTotalConnections test, which is nice. However, the same DNS resolution error (I think) on the
So it's expecting an The interesting thing to ask is why is the exception different - I am running the same JDK locally as the agent, and would assume that we would receive the same exceptions. But since this is a case of more or less granularity for a specific test case, I think that the solution I suggested above works. Looking at the old build, the only test that's still failing seems to be this exact one - pushing this now to see if I get the all-green. |
* Fix typos * Fix Failing Github Actions Tests (#1753) * Bump GitHub Actions runner version to Ubuntu 20.04 * AsyncStreamHandlerTest.asyncOptionsTest - Allow for the appearance of the TRACE method in the server's response * MaxTotalConnectionTest.testMaxTotalConnections - https://github.com --> https://www.youtube.com, https://google.com --> https://www.google.com * TextMessageTest.onFailureTest - Refactor logic for more granular testing (accept ConnectException in addition to UnknownHostException, but check for "DNS Name not found" in exception cause) Co-authored-by: Tom Granot <[email protected]>
Prefix the
www
subdomain for URLs in thetestMaxTotalConnections
test so it doesn't fail on DNS weirdness.Should unblock quite a few PRs in the way, the most recent one being #1752.
Should probably investigate further / refactor (opened for that), but this blocks the thread on everything else on the repo, so I'm calling it.